﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wlm.wsx
{
    public class MinusOperator:Operator 
    {
        public MinusOperator()
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="op1"></param>
        /// <param name="op2"></param>
        public MinusOperator(int op1, int op2)
        {
            _Operant1 = op1;
            _Operant2 = op2;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToXML()
        {
            int sum = _Operant1 - _Operant2;
            return "<int>" + sum + "</int>";
        }
        private int _Operant1 = 0;
        private int _Operant2 = 0;
    }
}
